package edu.cdnu.common.dto;

import java.util.List;

import edu.cdnu.pojo.TeacherPojo;

/**
 * 学院列表，学院下有所属这个学院的教师列表
 * @author ASUS AsingZ
 */
public class DepartmentAndTeacherDto {

	private Integer id;
	/**
	 * 名称
	 */
	private String name;
	/**
	 * 父id，所属的上一级的Id
	 */
	private Integer parentId;
	/**
	 * 描述
	 */
	private String decription;
	
	/**
	 * 所属这个学院的老师
	 */
	private List<TeacherPojo> teacherList;

	public DepartmentAndTeacherDto() {
		super();
	}

	public DepartmentAndTeacherDto(Integer id, String name, Integer parentId, String decription,
			List<TeacherPojo> teacherList) {
		super();
		this.id = id;
		this.name = name;
		this.parentId = parentId;
		this.decription = decription;
		this.teacherList = teacherList;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getParentId() {
		return parentId;
	}

	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}

	public String getDecription() {
		return decription;
	}

	public void setDecription(String decription) {
		this.decription = decription;
	}

	public List<TeacherPojo> getTeacherList() {
		return teacherList;
	}

	public void setTeacherList(List<TeacherPojo> teacherList) {
		this.teacherList = teacherList;
	}

	@Override
	public String toString() {
		return "DepartmentAndTeacherDto [id=" + id + ", name=" + name + ", parentId=" + parentId + ", decription="
				+ decription + ", teacherList=" + teacherList + "]";
	}
}
